<!DOCTYPE html
        PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
    <title>Click2Edit.com</title>
 
 <%= stylesheet_link_tag 'main' %>  
 
   
</head>
<body>
<font face="trebuchet ms">
    <div id="container">
      <div id="header">

<table>

<tr>
<td>
<font color="#005CB8"><b><font face="trebuchet ms" size="5">Admin site</font></b></font>
</td>
<td>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td>
<td align=right >
<%= image_tag("bifBOTka.png") %>
</td>
<td>
<%= "Hello " + User.find(session[:user_id]).name %>
</td>

<td>
<%= link_to("Sign Out",  {:controller => 'account',:action => 'logout'}) %>
</td>

				<td>
				<font  size="2">Current Alias: (<b><%= Ualia.find_by_iscurrent(true).name  %></b>)</font>
				</td>
				<td>
				<font  size="2">Default Website: (<b><%= Websitesinf.find_by_iscurrent(true).name  %></b>)</font>
				</td>
</tr>

</table>
</div>

<%= javascript_include_tag "application" %>

<% # Include TinyMCE before other JS to avoid problems -%>
<%= javascript_include_tiny_mce_if_used %>
<%= tiny_mce if using_tiny_mce? %> 

<%= javascript_include_tag "prototype" %>
 <%= active_scaffold_includes %>


 



      <div id="sidemenu">
        <%= render :partial => 'layouts/menu' %>
      </div>
      <div id="content">

        <h3>Articles List For Website <%=Websitesinf.find(params[:id]).name%></h3>

        <% if flash[:notice] -%>
          <div id="notice"><%= flash[:notice] %></div>
        <% end -%>
        <% if flash[:error] -%>
          <div id="error"><%= flash[:error] %></div>
        <% end -%>
        <%= yield %>
      </div>
    </div>
  </body>
</font>  
</html>
<script language="javascript">

if(window.HTMLElement) {
    HTMLElement.prototype.__defineSetter__("outerHTML",function(sHTML){
        var r=this.ownerDocument.createRange();
        r.setStartBefore(this);
        var df=r.createContextualFragment(sHTML);
        this.parentNode.replaceChild(df,this);
        return sHTML;
        });

    HTMLElement.prototype.__defineGetter__("outerHTML",function(){
     var attr;
        var attrs=this.attributes;
        var str="<"+this.tagName.toLowerCase();
        for(var i=0;i<attrs.length;i++){
            attr=attrs[i];
            if(attr.specified)
                str+=" "+attr.name+'="'+attr.value+'"';
            }
        if(!this.canHaveChildren)
            return str+">";
        return str+">"+this.innerHTML+"</"+this.tagName.toLowerCase()+">";
        });
       
 HTMLElement.prototype.__defineGetter__("canHaveChildren",function(){
  switch(this.tagName.toLowerCase()){
            case "area":
            case "base":
         case "basefont":
            case "col":
            case "frame":
            case "hr":
            case "img":
            case "br":
            case "input":
            case "isindex":
            case "link":
            case "meta":
            case "param":
            return false;
        }
        return true;

     });
}

		function do_delete(){
 var strtest = '/comments/submpostartic1/';
 new Ajax.Request(strtest, {asynchronous:true, evalScripts:true});



    }

 function selectInput(currid)
 {
arrsubstr = currid.split(' ');

$('record[ispublished]'+arrsubstr[0]).disabled = true;



$('comments-edit-'+arrsubstr[0]+'-link').outerHTML = "<a class='disabled'>Edit</a>";
$('comments-destroy-'+arrsubstr[0]+'-link').outerHTML = "<a class='disabled'>Delete</a>";
$('comments-show-'+arrsubstr[0]+'-link').outerHTML = "<a class='disabled'>Show</a>";


 var strtest = '/comments/submpostartic/'+arrsubstr[0];
 new Ajax.Request(strtest, {asynchronous:true, evalScripts:true});
 alert("You have successfully post comment "+arrsubstr[1]+" to article "+arrsubstr[2]+" on http://84.234.17.41:3009/");
 }

 </script>
